﻿using System;
using System.Collections.Generic;
using System.Linq;
using SimpleBlog.Models;
using SimpleBlog.Infrastructure.Repositories;
using SimpleBlog.Infrastructure.Database;

namespace SimpleBlog.Infrastructure.Repositories
{
    public class CommentRepository : Repository<Comment>, ICommentRepository
    {
        protected override IQueryable<Comment> DefaultSet
        {
            get
            {
                return _Context.Comments;
            }
        }

        protected override Func<Comment, object> DefaultOrderBy
        {
            get
            {
                return x => x.Created;
            }
        }

        public CommentRepository(SbContext context) : base(context) { }
    }
}